// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'CustId',
        footer: "Foots",
        cnName: '客户管理',
        name: 'Customer',
        url: "/Customer/",
        sortName: "CustId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"CustCode":"","CustName":"","CustAbbreviation":"","CustType":"","CustPhone":"","ConPerson":"","ConPersonPhone":"","IsEnable":""};
    const editFormOptions = [[{"title":"客户编码","required":true,"field":"CustCode"}],
                              [{"title":"客户名称","required":true,"field":"CustName"}],
                              [{"title":"客户简称","required":true,"field":"CustAbbreviation"}],
                              [{"title":"客户类型","required":true,"field":"CustType"}],
                              [{"title":"客户电话","required":true,"field":"CustPhone"}],
                              [{"title":"联系人","required":true,"field":"ConPerson"}],
                              [{"title":"联系人-电话","required":true,"field":"ConPersonPhone"}],
                              [{"dataKey":"enable","data":[],"title":"是否启用","required":true,"field":"IsEnable","type":"radio"}]];
    const searchFormFields = {"CustCode":"","CustName":"","CustAbbreviation":"","IsEnable":""};
    const searchFormOptions = [[{"title":"客户编码","field":"CustCode","type":"like"},{"title":"客户名称","field":"CustName","type":"like"},{"title":"客户简称","field":"CustAbbreviation","type":"like"}],[{"dataKey":"enable","data":[],"title":"是否启用","field":"IsEnable","type":"radio"}]];
    const columns = [{field:'CustId',title:'主键',type:'int',width:110,require:true,align:'left'},
                       {field:'CustCode',title:'客户编码',type:'string',width:110,require:true,align:'left'},
                       {field:'CustName',title:'客户名称',type:'string',width:110,require:true,align:'left'},
                       {field:'CustAbbreviation',title:'客户简称',type:'string',width:110,require:true,align:'left'},
                       {field:'CustType',title:'客户类型',type:'string',width:110,require:true,align:'left'},
                       {field:'CustPhone',title:'客户电话',type:'string',width:110,require:true,align:'left'},
                       {field:'ConPerson',title:'联系人',type:'string',width:110,require:true,align:'left'},
                       {field:'ConPersonPhone',title:'联系人-电话',type:'string',width:110,require:true,align:'left'},
                       {field:'IsEnable',title:'是否启用',type:'int',bind:{ key:'enable',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}